#ifndef MAINDIALOG_H
#define MAINDIALOG_H

#include <QDialog>
#include <QTcpSocket>

QT_BEGIN_NAMESPACE
namespace Ui { class MainDialog; }
QT_END_NAMESPACE

class MainDialog : public QDialog
{
    Q_OBJECT

public:
    MainDialog(QWidget *parent = nullptr);
    ~MainDialog();

private:
    Ui::MainDialog *ui;
    QTcpSocket* sock;

private slots:
    void connected();
    void disconnected();
    void recvMsg();
    void commError(QAbstractSocket::SocketError socketError);
    void on_btnSend_clicked();
};
#endif // MAINDIALOG_H
